package com.qww.exec23;

class A {
    static int x = f();
    static int f() {
        System.out.println("initial ... ");
        return 100;
    }
}

public class B extends A {
    public static void main(String[] args) {
        System.out.println(A.x);
        B b1 = new B();
    }
}
/*运行结果
initial ...
 */